package com.yshkj.payment.controller;

import com.yshkj.payment.dto.AccountMenuListJsonDto;
import com.yshkj.payment.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by 唐旭 on 2016/9/28.
 */
@Controller
@RequestMapping("/account")
public class AccountController {

    @Autowired
    private AccountService accountService;

    @RequestMapping("/menuList")
    @ResponseBody
    public AccountMenuListJsonDto getMenuList() {
        return accountService.getMenuList();
    }
}
